package no.nordicsemi.android.dfuupdate;

public class Result {
    String devName;
    String devMac;
    String devRsult;

    public void setDevName(String name) {
        this.devName = name;
    }
    public String getDevName() {
        return this.devName;
    }

    public void setDevMac(String mac) {
        this.devMac = mac;
    }
    public String getDevMac() {
        return this.devMac;
    }

    public void setDevRsult(String result) {
        this.devRsult = result;
    }
    public String getDevRsult(){
        return this.devRsult;
    }

    public Result() {}

    public Result(String name, String mac, String status) {
        this.devRsult = status;
        this.devMac = mac;
        this.devName = name;
    }

    public Result(String mac, String status) {
        this.devMac = mac;
        this.devRsult = status;
        String[] arr = mac.split(":");
        StringBuilder sb = new StringBuilder().append("TAG_");
        for(String a : arr) {
            sb.append(a);
        }
        this.devName = sb.toString();
    }
}
